//package com.nkym.filter;
//
//import lombok.extern.slf4j.Slf4j;
//import org.slf4j.MDC;
//
//import javax.servlet.*;
//import javax.servlet.annotation.WebFilter;
//import java.io.IOException;
//import java.util.UUID;
//
//@Slf4j
//@WebFilter(urlPatterns = "/*")
//public class HttpTraceIdFilter implements Filter {
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
//        String tid = UUID.randomUUID().toString();
//        MDC.put("tid", tid);
//        chain.doFilter(request, response);
//    }
//
//}